import 'package:fish_redux/fish_redux.dart';
import 'package:wowhy/models/admin_user_info.dart';

enum AdminUserItemAction {
  onDetail,
  onEdit,
  edit,
  onRemove,
}

class AdminUserItemActionCreator {
  static Action onDetail() {
    return Action(AdminUserItemAction.onDetail);
  }

  static Action onEdit() {
    return Action(AdminUserItemAction.onEdit);
  }

  static Action edit(AdminUserInfo payload) {
    return Action(AdminUserItemAction.edit, payload: payload);
  }

  static Action onRemove() {
    return Action(AdminUserItemAction.onRemove);
  }
}
